﻿using System;

namespace HQS.TokenInterpolation
{
    [AttributeUsage(AttributeTargets.Property, Inherited = false, AllowMultiple = false)]
    public class TokenPropertyAttribute : Attribute
    {
        public TokenPropertyAttribute(string name, bool required = true)
        {
            Name = name;
            Required = required;
        }

        public string Name { get; set; }
        public bool Required { get; set; }
    }
}